import { createStore } from "vuex"
const defaultState = {
  loading: false,
  requests: []
}
type state = {
  loading: boolean
  requests: any[]
}
export default createStore({
  state() {
    return defaultState
  },
  mutations: {
    loadStatus(state: state, boolean) {
      state.loading = boolean
    },
    addRequest(state: state, string) {
      state.requests.push(string)
    }
  }
})
